.no-course-warning {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

/* 日期选择器样式 - 日历按钮在左侧 */
#deadline {
    position: relative;
    padding-left: 35px;
}

#deadline::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* 练习列表样式 */
.practice-list {
    margin-top: 20px;
}

.practice-item {
    background: white;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.practice-header h3 {
    margin-top: 0;
    color: #333;
}

.practice-meta {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.practice-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.practice-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.view-questions-btn {
    background-color: #4CAF50;
    color: white;
}

.view-questions-btn:hover {
    background-color: #45a049;
}

.remove-practice-btn {
    background-color: #f44336;
    color: white;
}

.remove-practice-btn:hover {
    background-color: #d32f2f;
}

.questions-container {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* 对话框样式 */
.practice-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.dialog-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.confirm-btn {
    background-color: #f44336;
    color: white;
}

.confirm-btn:hover {
    background-color: #d32f2f;
}

.cancel-btn {
    background-color: #e0e0e0;
}

.cancel-btn:hover {
    background-color: #bdbdbd;
}

/* 题目按钮样式 */
.question-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.question-buttons button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.question-buttons button:hover {
    background-color: #45a049;
}

/* 题目区域样式 */
.question-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.question-item {
    margin: 10px 0;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.question-item h4 {
    margin-top: 0;
    color: #333;
}

.question-item p {
    margin-bottom: 0;
    color: #666;
}

.cancel-btn {
    background-color: #f44336;
    color: white;
    margin-left: 10px;
}

.cancel-btn:hover {
    background-color: #d32f2f;
}

/* 题目表单样式 */
.modal textarea {
    width: 100%;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
}

.blank-group {
    margin-top: 10px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.navigation {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.navigation button {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-right: 5px;
}

.navigation button.active {
    background-color: #4CAF50;
    color: white;
}

.content-section {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group select, 
.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#publishBtn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#publishBtn:hover {
    background-color: #45a049;
}

/* 导入按钮样式 */
.import-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    background-color: #2196F3;
    color: white;
    margin-left: 10px;
}

.import-button:hover {
    background-color: #0b7dda;
}

/* 导入帮助模态框样式 */
.help-item {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.help-item p {
    margin: 10px 0;
    font-size: 16px;
}

.help-item img {
    max-width: 100%;
    border: 1px solid #ddd;
    margin: 10px 0;
}

/* 返回按钮样式 */
.back-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.back-button {
    padding: 10px 20px;
    background-color: #607D8B;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.back-button:hover {
    background-color: #455A64;
}

#importPracticeModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
}